package com.xw.echo.core.client;


import com.xw.echo.core.pool.ManagerConnectPool;

abstract class EchoClientAbstract  {
   private final ClientConfig clientConfig=new ClientConfig();
   protected final ManagerConnectPool managerConnectPool = ManagerConnectPool.getInstance();
   public abstract Object creatProxy(Class<?> clazz);
   public ClientConfig  setMaxConnections(int maxConnections){
      clientConfig.setMaxConnections(maxConnections);
      return clientConfig;
   }
   public ClientConfig  setClientThread(int clientThread){
      clientConfig.setClientThread(clientThread);
      return clientConfig;
   }
   public  ClientConfig  setMaxQueueWaitTime(int maxQueueWaitTime){
      clientConfig.setMaxQueueWaitTime(maxQueueWaitTime);
      return clientConfig;
   }
   public ClientConfig  setMaxConnectTimeOut(int maxConnectTimeOut){
      clientConfig.setMaxConnectTimeOut(maxConnectTimeOut);
      return clientConfig;
   }
   public ClientConfig  setInitConnections(int initConnections){
      clientConfig.setInitConnections(initConnections);
      return clientConfig;
   }


}
